<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs-popup.jsp" %>
<link rel="stylesheet" type="text/css" href="${ctx}/css/body.css"/>
<g:panel>
	<div class="currentPosition">
		<g:property value="%{getText('current.position')}"></g:property>
		<g:property value="%{getText('assign.area.role')}"></g:property>
	</div>
</g:panel>


<g:panel>
	<g:form namespace="/account" action="assignRoleAndArea2User" validate="true" method="post">
		<g:hidden name="id" value="%{entity.id}" />
		<g:grid cols="4">
			<g:label key="label.loginName" name="entity.loginName" inputcolspan="3"/>
			<g:label key="label.name" name="entity.name" inputcolspan="3"/>
			<g:label key="label.email" name="entity.email" inputcolspan="3"/>
			<g:label key="label.phoneCode" name="entity.phoneCode" inputcolspan="3"/>		
	        <g:checkboxlist name="areaIds" value="%{areaIds}" list="areaList" listKey="id" listValue="title" key="account.area" inputcolspan="3"/>
			<g:checkboxlist name="checkedRoleIds" value="%{checkedRoleIds}" list="roleList" listKey="id" listValue="name" key="account.role" inputcolspan="3"/>
	        <g:fieldgroup name="group" inputcolspan="3">
				<g:submit align="center" key="button.submit"/>
				<g:reset align="center" key="button.reset"/>
			</g:fieldgroup>
		</g:grid>
	</g:form>
</g:panel>
